package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/3/2.
 */

public class SearchStoreReq {
    private String uuid;
    private String industry;
    private String type;
    private String product_id;
    private String lng;
    private String lat;
    private String page;
    private String page_size;
    private String secret;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getPage_size() {
        return page_size;
    }

    public void setPage_size(String page_size) {
        this.page_size = page_size;
    }

    public String urlString() {
        return "store/store_list";
    }

    public String getSecret() {
        String string = "uuid=" + uuid + "&type=" + type + (industry == "" ? "" : "&industry=" + industry) + (product_id == "" ? "" : "&product_id=" + product_id) + "&lng=" + lng + "&lat=" + lat +
                "&page=" + page + "&page_size=" + page_size;
        try {

            Rsa rsa = new Rsa();
            Log.e("ssss", "1111source==>" + string);
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return secret;
    }
}
